<!DOCTYPE html>
<html>
	<head>
		<title>Leitor de RSS | Sala de Imprensa - USP</title>
		<meta charset="utf-8">
		<link rel=stylesheet type="text/css" href="css/config.css">
		<script type="text/javascript" charset="utf-8" src="js/cordova-2.5.0.js" />
		<script type="text/javascript" charset="utf-8" src="js/jquery-1.9.1.min.js" />
		<script type="text/javascript" charset="utf-8" src="js/processamento.js" />
		<script type="text/javascript" charset="utf-8" src="js/cache.js" />
		<script type="text/javascript" charset="utf-8">
			
			function salvarTamCache() {
				var cache = $('#cache_tamanho').val();
				window.localStorage.setItem("tamanhoCache", cache);
				window.location.replace("index.html");
			}
			
			document.addEventListener("deviceready", carregaConfCache, false);
			
			function carregaConfCache(){
				var tamanhoCache = window.localStorage.getItem("tamanhoCache");
				$('#cache_tamanho').val(tamanhoCache);
			}
			
		</script>
	</head>
	
	<body>
		<div id="container">
			<div id="cabecalho">
				<h1>SImpUSP</h1>
			</div>

			<div id="configuracoes">
				<form name="htmlform" method="post">
					<table width="45%">
						<tr>
							<td valign="top">
								<label for="cache_tamanho">Quantas no: </label>
							</td>
							<td valign="top">
								<input  type="text" id="cache_tamanho" maxlength="3" size="5">
							</td>
						</tr>
					</table>
				</form>
			</div>

			<div id="botoes">
				<ul>
					<li><a href="index.html">Atualizar cache</a></li>
					<li><a href="#" onclick="salvarTamCache();">Salvar</a></li>
					<li><a href="index.html">Voltar</a></li>
				</ul>
			</div>

			<div id="rodape">
				<p>Rodapé</p>
			</div>
		</div>
	</body>
</html>

